const router = require('koa-router')()
const User = require('../controllers/user');

router.prefix('/user')

router.get('/', function (ctx, next) {
  ctx.body = 'this is a users response!'
})

router.get('/bar', function (ctx, next) {
  ctx.body = 'this is a users/bar response'
})

router.post('/login', User.login);

router.get('/get', User.get);

router.get('/list', User.list);

module.exports = router
